// register
import register from '../../../scripts/angular/register.js';

// routers
import ScoreRouter from '../routers/score.routers.js';

// services
import ScoreService from '../services/scoreService.js';

// controllers
import ScoreListController from '../controllers/scorelist.controller.js';
import RawdataController from '../controllers/rawdata.controller.js';
import RawdataListController from '../controllers/rawdataList.controller.js';
import RealtimeController from '../controllers/realtime.controller.js';
import RealtimeListController from '../controllers/realtimeList.controller.js';
import RealtimeTeamController from '../controllers/realtimeteam.controller.js';
import RealtimeListPersonalController from '../controllers/realtimeListPersonal.controller.js';
import RealtimeListTeamController from '../controllers/realtimeListTeam.controller.js'


angular
	.module('score.module', [
		'ngAnimate', 
		'ngSanitize', 
		'ui.router',
	    'ngMessages',  
		'chieffancypants.loadingBar', 
		'ngDialog', 
	    'mgcrea.ngStrap', 
		'oc.lazyLoad',
		'ng-sortable'
	])
	.config(ScoreRouter)
	.controller('ScoreListController', ScoreListController)
	.controller('RawdataController', RawdataController)
	.controller('RawdataListController', RawdataListController)
	.controller('RealtimeController', RealtimeController)
	.controller('RealtimeListController', RealtimeListController)
	.controller('RealtimeTeamController', RealtimeTeamController)
	.controller('RealtimeListPersonalController', RealtimeListPersonalController)
	.controller('RealtimeListTeamController', RealtimeListTeamController);



register('score.module')
    .factory('ScoreService', ScoreService);